﻿using System.ComponentModel;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;

namespace ThunderboltCustomControlLibrary;

public class OptimizedTabItem:TabItem
{
	static OptimizedTabItem()
	{
		DefaultStyleKeyProperty.OverrideMetadata(typeof(OptimizedTabItem), new FrameworkPropertyMetadata(typeof(OptimizedTabItem)));
	}


	/// <summary>
	/// 选中字体颜色
	/// </summary>
	public SolidColorBrush ActiveForeground
	{
		get { return (SolidColorBrush)GetValue(ActiveForegroundProperty); }
		set { SetValue(ActiveForegroundProperty, value); }
	}


	/// <summary>
	/// 未选中字体颜色
	/// </summary>
	[Category("自定义"), Description("该属性用于调整内部文字的未选中字体颜色")]
	public SolidColorBrush InactiveForeground
	{
		get { return (SolidColorBrush)GetValue(InactiveForegroundProperty); }
		set { SetValue(InactiveForegroundProperty, value); }
	}


	/// <summary>
	/// 选中字体颜色
	/// </summary>
	public SolidColorBrush ActiveIndicatorColor
	{
		get { return (SolidColorBrush)GetValue(ActiveIndicatorColorProperty); }
		set { SetValue(ActiveIndicatorColorProperty, value); }
	}


	public static readonly DependencyProperty ActiveIndicatorColorProperty =
		DependencyProperty.Register("ActiveIndicatorColor", typeof(SolidColorBrush), typeof(OptimizedTabItem), new PropertyMetadata(new SolidColorBrush(Color.FromRgb(172, 172, 172))));


	public static readonly DependencyProperty InactiveForegroundProperty =
		DependencyProperty.Register("InactiveForeground", typeof(SolidColorBrush), typeof(OptimizedTabItem), new PropertyMetadata(new SolidColorBrush(Color.FromRgb(172, 172, 172))));


	public static readonly DependencyProperty ActiveForegroundProperty =
			DependencyProperty.Register("ActiveForeground", typeof(SolidColorBrush), typeof(OptimizedTabItem), new PropertyMetadata(new SolidColorBrush(Color.FromRgb(67, 67, 68))));

		
}